package com.example.coffee.items;

public class StoreItem {
    // 私有属性
    private String name;      // 门店名称
    private String distance;  // 距离
    private String time;      // 营业时间
    private String address;   // 地址
    // 定义构造方法
    public StoreItem(String name, String distance, String time, String address) {
        this.name = name;
        this.distance = distance;
        this.time = time;
        this.address = address;
    }
    // 对外提供数据数据的getter方法
    public String getName() {
        return name;
    }

    public String getDistance() {
        return distance;
    }

    public String getTime() {
        return time;
    }

    public String getAddress() {
        return address;
    }
}
